/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.openbravo.bean;

import com.openbravo.bean.shard.UserOrderTypePermission;
import com.openbravo.bean.shard.UserPermission;
import com.openbravo.bean.infobean.RoleInfo;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 *
 * @author Administrator
 */
public class Role extends RoleInfo{
    /**
	 * 
	 */
	private static final long serialVersionUID = 5717553718230673688L;
	private  List<UserPermission> permissions=new ArrayList<UserPermission>();
    private  Map<String,UserOrderTypePermission> orderTypePermissions=new HashMap<String,UserOrderTypePermission>();
    private Map<String,UserOrderTypePermission> stateProcessPermissions=new HashMap<String,UserOrderTypePermission>();

    public Map<String, UserOrderTypePermission> getOrderTypePermissions() {
        return orderTypePermissions;
    }

    public void setOrderTypePermissions(Map<String, UserOrderTypePermission> orderTypePermissions) {
        this.orderTypePermissions = orderTypePermissions;
    }

    public List<UserPermission> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<UserPermission> permissions) {
        this.permissions = permissions;
    }

	public void setStateProcessPermissions(
			Map<String, UserOrderTypePermission> formatOrderTypePermissions) {
		stateProcessPermissions=formatOrderTypePermissions;
	}
	public Map<String, UserOrderTypePermission> getStateProcessPermissions() {
        return stateProcessPermissions;
    }
}


